package com.kashow.bean.question;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * Created by yybs on 16/12/27.
 */

public class Question implements MultiItemEntity{
    public  static final int NORMAL = 1;
    public  static final int TOP = 2;
    /**
     * __v : 0
     * _id : 2
     * user : {"_id":5,"__v":0,"nickname":"李文跃","relation":3,"phone":"15822774691","unionid":"ojmTMwFUyD5xpIMUgJE9ZyXRIr8A","wxUserInfo":{"openid":"oYinvs8fuzlFw-lQUaoUQdJdE0so","nickname":"李文跃","sex":1,"language":"zh_CN","city":"Hangzhou","province":"Zhejiang","country":"China","headimgurl":"http://wx.qlogo.cn/mmopen/ajNVdqHZLLCERgmTtkWEbY4Ol1mG46MJTQuVeUN2mCTXnV1CRmjU32ZGFpP8aicrSPh5j7tUmI01frFficha4FjA/0","unionid":"ojmTMwFUyD5xpIMUgJE9ZyXRIr8A","updatedAt":"2016-12-27T08:16:20.000Z","tagid_list":[]},"authInfo":{"intro":"","realName":"李文跃","cardNumber":"371522199008071234","cardPic1":"e_NUyLdkartvCAXwVzVg7fVRodhKGOXCXYEsMYtC1Opo4SAtSdbvQQaOw_XXmW5P","cardPic2":"hXO9UE9NKZApMv8qoRdpyI4ANzZzdQt_vEgs9-ngorBu0zMzpqqOeL2jOQIaOTCE","status":1,"updatedAt":"2016-12-27T08:22:01.842Z","createdAt":"2016-12-27T08:22:01.842Z"},"createdAt":"2016-12-27T08:16:32.122Z","isSub":true,"sex":0,"balance":0,"score":0,"level":1,"isTeacher":true}
     * live : 7
     * content : 测试
     * order : 2
     * teacher : 5
     * updatedAt : 2016-12-28T09:39:26.369Z
     * createdAt : 2016-12-28T09:39:26.369Z
     * weight : 0
     */

    private int _id;
    private UserBean user;
    private int live;
    private String content;
    private int order;
    private int teacher;
    private String updatedAt;
    private String createdAt;
    private int weight;


    @Override
    public int getItemType() {
        return NORMAL;
    }

    public int get_id() {
        return _id;
    }

    public void set_id(int _id) {
        this._id = _id;
    }

    public UserBean getUser() {
        return user;
    }

    public void setUser(UserBean user) {
        this.user = user;
    }

    public int getLive() {
        return live;
    }

    public void setLive(int live) {
        this.live = live;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public int getOrder() {
        return order;
    }

    public void setOrder(int order) {
        this.order = order;
    }

    public int getTeacher() {
        return teacher;
    }

    public void setTeacher(int teacher) {
        this.teacher = teacher;
    }

    public String getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(String updatedAt) {
        this.updatedAt = updatedAt;
    }

    public String getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(String createdAt) {
        this.createdAt = createdAt;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public static class UserBean {
        /**
         * _id : 5
         * __v : 0
         * nickname : 李文跃
         * relation : 3
         * phone : 15822774691
         * unionid : ojmTMwFUyD5xpIMUgJE9ZyXRIr8A
         * wxUserInfo : {"openid":"oYinvs8fuzlFw-lQUaoUQdJdE0so","nickname":"李文跃","sex":1,"language":"zh_CN","city":"Hangzhou","province":"Zhejiang","country":"China","headimgurl":"http://wx.qlogo.cn/mmopen/ajNVdqHZLLCERgmTtkWEbY4Ol1mG46MJTQuVeUN2mCTXnV1CRmjU32ZGFpP8aicrSPh5j7tUmI01frFficha4FjA/0","unionid":"ojmTMwFUyD5xpIMUgJE9ZyXRIr8A","updatedAt":"2016-12-27T08:16:20.000Z","tagid_list":[]}
         * authInfo : {"intro":"","realName":"李文跃","cardNumber":"371522199008071234","cardPic1":"e_NUyLdkartvCAXwVzVg7fVRodhKGOXCXYEsMYtC1Opo4SAtSdbvQQaOw_XXmW5P","cardPic2":"hXO9UE9NKZApMv8qoRdpyI4ANzZzdQt_vEgs9-ngorBu0zMzpqqOeL2jOQIaOTCE","status":1,"updatedAt":"2016-12-27T08:22:01.842Z","createdAt":"2016-12-27T08:22:01.842Z"}
         * createdAt : 2016-12-27T08:16:32.122Z
         * isSub : true
         * sex : 0
         * balance : 0
         * score : 0
         * level : 1
         * isTeacher : true
         */

        private int _id;
        private String nickname;
        private int relation;
        private String phone;
        private String unionid;
        private WxUserInfoBean wxUserInfo;
        private AuthInfoBean authInfo;
        private String createdAt;
        private boolean isSub;
        private int sex;
        private int balance;
        private int score;
        private int level;
        private boolean isTeacher;

        public int get_id() {
            return _id;
        }

        public void set_id(int _id) {
            this._id = _id;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public int getRelation() {
            return relation;
        }

        public void setRelation(int relation) {
            this.relation = relation;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public String getUnionid() {
            return unionid;
        }

        public void setUnionid(String unionid) {
            this.unionid = unionid;
        }

        public WxUserInfoBean getWxUserInfo() {
            return wxUserInfo;
        }

        public void setWxUserInfo(WxUserInfoBean wxUserInfo) {
            this.wxUserInfo = wxUserInfo;
        }

        public AuthInfoBean getAuthInfo() {
            return authInfo;
        }

        public void setAuthInfo(AuthInfoBean authInfo) {
            this.authInfo = authInfo;
        }

        public String getCreatedAt() {
            return createdAt;
        }

        public void setCreatedAt(String createdAt) {
            this.createdAt = createdAt;
        }

        public boolean isIsSub() {
            return isSub;
        }

        public void setIsSub(boolean isSub) {
            this.isSub = isSub;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getBalance() {
            return balance;
        }

        public void setBalance(int balance) {
            this.balance = balance;
        }

        public int getScore() {
            return score;
        }

        public void setScore(int score) {
            this.score = score;
        }

        public int getLevel() {
            return level;
        }

        public void setLevel(int level) {
            this.level = level;
        }

        public boolean isIsTeacher() {
            return isTeacher;
        }

        public void setIsTeacher(boolean isTeacher) {
            this.isTeacher = isTeacher;
        }

        public static class WxUserInfoBean {
            /**
             * openid : oYinvs8fuzlFw-lQUaoUQdJdE0so
             * nickname : 李文跃
             * sex : 1
             * language : zh_CN
             * city : Hangzhou
             * province : Zhejiang
             * country : China
             * headimgurl : http://wx.qlogo.cn/mmopen/ajNVdqHZLLCERgmTtkWEbY4Ol1mG46MJTQuVeUN2mCTXnV1CRmjU32ZGFpP8aicrSPh5j7tUmI01frFficha4FjA/0
             * unionid : ojmTMwFUyD5xpIMUgJE9ZyXRIr8A
             * updatedAt : 2016-12-27T08:16:20.000Z
             * tagid_list : []
             */

            private String openid;
            private String nickname;
            private int sex;
            private String language;
            private String city;
            private String province;
            private String country;
            private String headimgurl;
            private String unionid;
            private String updatedAt;

            public String getOpenid() {
                return openid;
            }

            public void setOpenid(String openid) {
                this.openid = openid;
            }

            public String getNickname() {
                return nickname;
            }

            public void setNickname(String nickname) {
                this.nickname = nickname;
            }

            public int getSex() {
                return sex;
            }

            public void setSex(int sex) {
                this.sex = sex;
            }

            public String getLanguage() {
                return language;
            }

            public void setLanguage(String language) {
                this.language = language;
            }

            public String getCity() {
                return city;
            }

            public void setCity(String city) {
                this.city = city;
            }

            public String getProvince() {
                return province;
            }

            public void setProvince(String province) {
                this.province = province;
            }

            public String getCountry() {
                return country;
            }

            public void setCountry(String country) {
                this.country = country;
            }

            public String getHeadimgurl() {
                return headimgurl;
            }

            public void setHeadimgurl(String headimgurl) {
                this.headimgurl = headimgurl;
            }

            public String getUnionid() {
                return unionid;
            }

            public void setUnionid(String unionid) {
                this.unionid = unionid;
            }

            public String getUpdatedAt() {
                return updatedAt;
            }

            public void setUpdatedAt(String updatedAt) {
                this.updatedAt = updatedAt;
            }
        }

        public static class AuthInfoBean {
            /**
             * intro :
             * realName : 李文跃
             * cardNumber : 371522199008071234
             * cardPic1 : e_NUyLdkartvCAXwVzVg7fVRodhKGOXCXYEsMYtC1Opo4SAtSdbvQQaOw_XXmW5P
             * cardPic2 : hXO9UE9NKZApMv8qoRdpyI4ANzZzdQt_vEgs9-ngorBu0zMzpqqOeL2jOQIaOTCE
             * status : 1
             * updatedAt : 2016-12-27T08:22:01.842Z
             * createdAt : 2016-12-27T08:22:01.842Z
             */

            private String intro;
            private String realName;
            private String cardNumber;
            private String cardPic1;
            private String cardPic2;
            private int status;
            private String updatedAt;
            private String createdAt;

            public String getIntro() {
                return intro;
            }

            public void setIntro(String intro) {
                this.intro = intro;
            }

            public String getRealName() {
                return realName;
            }

            public void setRealName(String realName) {
                this.realName = realName;
            }

            public String getCardNumber() {
                return cardNumber;
            }

            public void setCardNumber(String cardNumber) {
                this.cardNumber = cardNumber;
            }

            public String getCardPic1() {
                return cardPic1;
            }

            public void setCardPic1(String cardPic1) {
                this.cardPic1 = cardPic1;
            }

            public String getCardPic2() {
                return cardPic2;
            }

            public void setCardPic2(String cardPic2) {
                this.cardPic2 = cardPic2;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getUpdatedAt() {
                return updatedAt;
            }

            public void setUpdatedAt(String updatedAt) {
                this.updatedAt = updatedAt;
            }

            public String getCreatedAt() {
                return createdAt;
            }

            public void setCreatedAt(String createdAt) {
                this.createdAt = createdAt;
            }
        }
    }
}
